import java.util.ArrayList;

/**
 * Class that represents an existing user in the system.
 * 
 * @author NVious
 *
 */
public abstract class RegisteredUser 
{
	private int userID;
	private String name;
	private String surname;
	private ContactDetails address;
  
  
  public RegisteredUser(int userID, String name, String surname, ContactDetails address) 
  {
	this.userID = userID;
	this.name = name;
	this.surname = surname;
	this.address = address;
  }
  
  public ContactDetails getAddress() 
  {
	return address;
  }
	
  public int getUserID() 
  {
	return userID;
  }
  
  public String getName()
  {
	  return name;
  }
  
  public String getSurname() {
	return surname;
  }
  
  
  private ArrayList<Order> viewHistoryTracking(int iD)
  {
	  DBSystemComm dbComm = new DBSystemComm();
	  
	  return dbComm.getOrders(iD);
  }
  
  public abstract void trackHistory();
  

}
